<template>
  <div class="content">
    <div v-html="content" />
  </div>
</template>
<script>
import { agreementZxq } from '@/api/preview'
export default {
  data() {
    return {
      name: '',
      content: ''
    }
  },
  mounted() {
    const { type } = this.$route.query
    agreementZxq({
      agreement: type
    }).then((res) => {
      this.name = res.name
      window.title = res.name
      document.title = res.name
      this.content = res.content
    })
  }
}
</script>
<style scoped>
  .content{
    padding:10px;
  }
</style>
